package com.ProvierAndCustoer;

/**
 * Created by 41579 on 2017/4/20.
 */
public class Customer<T extends IResource> implements ICustomer {
    private IInventory<T> inventory;

    public Customer(IInventory<T> inventory) {
        this.inventory = inventory;
    }

    public IInventory<T> getInventory() {
        return inventory;
    }

    public void setInventory(IInventory<T> inventory) {
        this.inventory = inventory;
    }

    @Override
    public void custom() {
        inventory.reduce();
    }
}
